package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.TablePartitionStatistics;
import cn.getech.data.development.model.vo.TablePartitionStatisticsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TablePartitionStatisticsMapper extends BaseMapper<TablePartitionStatistics> {

    List<TablePartitionStatisticsVO> sizeTopTenRanking(@Param("tableId") Integer tableId, @Param("sort") Integer sort);

    void batchSaveOrUpdate(@Param("entityList") List<TablePartitionStatistics> entityList);
}
